import time

from openpyxl.utils import rows_from_range
from selenium.webdriver.common.by import By
from selenium import webdriver
from rkshijiu.Base import Base
import pytest




@pytest.fixture(scope='class')
def driver():
    driver=webdriver.Firefox()
    driver.maximize_window()
    yield driver
    driver.implicitly_wait(10)
    time.sleep(4)
    driver.quit()

def test_jiuxian_locin(driver):
    try:
        #读取数据
        work=driver.execute_script('rikaoshijiu.xlsx')
        excel=work['Sheet1']
        #读取关键字
        actions=row[2]
        params={}

        # #循环读取数据
        # if

